// 重定向redirect
export default [
  // path重定向
  {
    path: '/path-redirect',
    redirect: '/redirect-b/path'
  },
  // name重定向
  {
    path: '/name-redirect',
    redirect: {name: 'RedirectB', params: {params: 'name'}}
  },
  // 函数重定向
  {
    path: '/func-redirect',
    redirect: to => {
      console.log('函数重定向参数', to);
      return { // 返回重定向字符串或对象
        path: '/redirect-b/func'
      };
    }
  },
  {
    path: '/redirect-b/:params',
    name: 'RedirectB',
    component: () => import('@/views/redirect/RedirectB.vue')
  },
  {
    path: '/redirect-avoid-reuse',
    component: () => import('@/views/alias/AvoidReuse.vue')
  }
];